x = [10, 2, 30, 5]
x.sort()  # 对数字列表排序
print(x)
x = ['bbc', 'abc', 'BBC', 'Abc']
x.sort()  # 对字符串列表排序
print(x)
x = [1, 5, 3, 'bbc', 'abc', 'BBC']
x.sort()  # 对混合类型列表排序时出错